// import {get,post} from './http'
// import axios from 'axios'

// 首页数据
// export const homeData=()=>get('/generatePage/index.json')

import {detailServer, homeServer,menuServer} from './http'
// import {homeServer,menuServer} from './http'
import axios from 'axios'

// 首页数据
export const homeData=()=>{
  return axios.get(homeServer+"/generatePage/index.json")
}

// 分类数据
export const menuData=()=>{
    return axios.get(menuServer+"/js/roseonly_menu.json")
}

//详情页
export const detailData=(id)=>{
  return axios.get(detailServer+`/proProduct/m/details?id=${id}`)
}

//列表页
export const seriesData=(id)=>{
  return axios.get(detailServer+`/proTag/proListPropertys?menuId=${id}`)
}
// export const goodsData=(id)=>{
//   return axios.get(detailServer+`/proTag/proList?menuId=${id}&pageNum=1&sort=&proSeries=&proSize=&proColor=&proDesign=`)
// }
